package com.lxy.demo.dao;

import com.lxy.demo.entity.Invitation;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InvitationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Invitation record);

    int insertSelective(Invitation record);

    Invitation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Invitation record);

    int updateByPrimaryKey(Invitation record);

    //动态查询帖子列表
    List<Invitation> selectInvitationBySome(@Param("searchTitle") String searchTitle);

    @Delete(" delete  from `invitation` where id = #{id} ")
    int delInv(Integer id);
}